import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn } from "typeorm";
@Entity()
export class ReportManagement {
    @PrimaryGeneratedColumn()
    id: number

    /**报告日期 */
    @Column({ type: 'timestamp' })
    reportDate: Date

    /**报告内容 */
    @Column('json')
    data: { category: string, content: string }[];

    /**
    * 报告类型
    * day: 日报
    * month: 月报
    */
    @Column()
    type: string

    @CreateDateColumn({ type: 'timestamp' })
    createTime: Date

    @UpdateDateColumn({ type: 'timestamp' })
    updatedTime: Date;
}